/*
* created by Administrator on 2018/12/6
* 好的代码像粥一样,是得用时间和精力熬的。
*/
const APPTD = '20181206000244645';
const salt = () => {return Math.floor(Math.random()*10000000) + '';}
const query = '你好，世界！'
const keygen = 'M5VIyfjCPcvX8CrxvqxG'

const crypto = require('crypto');
const md5 = str => crypto.createHash('md5').update(str).digest('hex');
// let hash = crypto.createHash('md5');
// console.log(hash.update(APPTD + query + salt() + keygen).digest('hex'));
console.log(md5(APPTD + query + salt + keygen));
